{% extends "base.html" %}

{% block title %}
Country SY | REGISTER
{% end %}

{% block header %}
<h2>注册</h2>
{% end %}

{% block body %}
<form method="post" action="register">
	{% raw xsrf_form_html() %}
		<table>
			<tr>
				<td>用户名</td>
				<td><input type="text" name="username" id="username"></td>
				<td><input type="button" value="检查用户名是否存在" id="check_username"></td>
			</tr>
			<tr>
				<td colspan="2"><span id="username_notice" style="color:red;"></span></td>
			</tr>
			<tr>
				<td>密码</td>
				<td><input type="password" name="password" id="password"></td>
			</tr>
			<tr>
				<td>密码确认</td>
				<td><input type="password" name="repassword" id="repassword"></td>
			</tr>
			<tr>
				<td>年龄</td>
				<td><input type="text" name="age" id="age"></td>
			</tr>
			<tr>
				<td>性别</td>
				<td>
					<span>女<input type="radio" name="sex" value=0></span>
					<span>男<input type="radio" name="sex" value=1></span>
				</td>
			</tr>
		</table>
		<p><input type="submit" id="register" name="注册"></p>
	</form>
{% end %}